/*
Copyright [2023] [fuwen_soft]
*/
package vip.xiaonuo.modular.xylogy.entity;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.annotation.*;
import lombok.NoArgsConstructor;
import vip.xiaonuo.core.pojo.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import java.time.LocalDateTime;
import java.time.LocalDate;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.*;
import cn.afterturn.easypoi.excel.annotation.Excel;
import vip.xiaonuo.modular.xylogy.form.LogyForm;

/**
 * 族谱书
 *
 * @author yanwei
 * @date 2023-05-05 15:44:28
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("xy_logy")
@ApiModel("xy_logy 实体")
@NoArgsConstructor
public class XyLogy extends BaseEntity {

    public XyLogy (String userId, LogyForm logyForm){
        this.userId = userId;
        BeanUtil.copyProperties(logyForm,this);
    }


    /**
     * 
     */
    @ApiModelProperty("")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;


    /**
     * 用户编号,创建人
     */
    @Excel(name = "用户编号,创建人")
    @ApiModelProperty("用户编号,创建人")
    private String userId;


    /**
     * 家谱封面
     */
    @Excel(name = "家谱封面")
    @ApiModelProperty("家谱封面")
    private String logyPic;


    /**
     * 家族姓氏
     */
    @Excel(name = "家族姓氏")
    @ApiModelProperty("家族姓氏")
    private String logyName;


    /**
     * 姓氏
     */
    @Excel(name = "姓氏")
    @ApiModelProperty("姓氏")
    private String surname;


    /**
     * 始迁祖名
     */
    @Excel(name = "始迁祖名")
    @ApiModelProperty("始迁祖名")
    private String sourceName;


    /**
     * 所属地区
     */
    @Excel(name = "所属地区")
    @ApiModelProperty("所属地区")
    private String addrInfo;


    /**
     * 模板序号
     */
    @Excel(name = "模板序号")
    @ApiModelProperty("模板序号")
    private Integer templateHost;


    /**
     * 1=公开,2=私密
     */
    @Excel(name = "1=公开,2=私密")
    @ApiModelProperty("1=公开,2=私密")
    private Integer isOpen;


    /**
     * is_open=2 有用，查看家谱密码
     */
    @Excel(name = "is_open=2 有用，查看家谱密码")
    @ApiModelProperty("is_open=2 有用，查看家谱密码")
    private String lookPass;

    /**
     * 堂号
     */
    @Excel(name = "堂号")
    @ApiModelProperty("堂号")
    private String logyHost;


    /**
     * 堂号
     */
    @Excel(name = "族谱手机号")
    @ApiModelProperty("族谱手机号")
    private String logyPhone;


    /**
     * 修谱时间
     */
    @Excel(name = "修谱时间")
    @ApiModelProperty("修谱时间")
    private String chageLogy;


    /**
     * 修谱时间
     */
    @Excel(name = "家谱备注")
    @ApiModelProperty("家谱备注")
    private String logyBack;




}
